package ai.zixing.filter;

import ai.zixing.OrderContext;
import ai.zixing.OrderHandleIntercept;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(3)
@Component
public class BankOrderHandleInterceptService implements OrderHandleIntercept {
//    @Override
//    public int sort() {
//        //执行顺序为 3
//        return 3;
//    }

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("检查银行账户是否合法，调用银行系统检查银行账户余额是否满足下单金额");
        return context;
    }
}
